]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
tweener: Use StSettings instead of GtkSettings
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 27 Nov 2018 13:52:06 +0000 (14:52 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 30 Jan 2019 22:18:53 +0000 (23:18 +0100)
Cut a middle man by listening to dconf settings directly, and stop relying
on XSettings for it.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/317

js/ui/tweener.js

index 6c9869c47bb2557cec3ac1f158b6acd536c94a82..80e5838adafd0707d57d44359152a2c3ddb6e947 100644 (file)
@@ -2,7 +2,6 @@
 
 const Clutter = imports.gi.Clutter;
 const GLib = imports.gi.GLib;
-const Gtk = imports.gi.Gtk;
 const Mainloop = imports.mainloop;
 const Shell = imports.gi.Shell;
 const St = imports.gi.St;
@@ -52,7 +51,7 @@ function _wrapTweening(target, tweeningParameters) {
         }
     }
 
-    if (!Gtk.Settings.get_default().gtk_enable_animations) {
+    if (!St.Settings.get().enable_animations) {
         tweeningParameters['time'] = 0.000001;
         tweeningParameters['delay'] = 0.000001;
     }